﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace WaterRevenueMS.Componnent.Data.Mapping.BaseData
{
    partial class MeterReaderMap
    {
        partial void MeterReaderMapAppend()
        {
          
            this.HasKey(t => t.Id);
            this.Property(t => t.Chao_BYMC)
                .HasMaxLength(16);
  
            this.ToTable("Bsc_Chao_BY");
            this.Property(t => t.Id).HasColumnName("Chao_BY_ID")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            
            this.HasOptional(t => t.CompanySet).WithMany(d => d.MeterReader).HasForeignKey(t => t.Dan_WSZ_No);//单位代码关联

        }
    }
}